package com.edu.service.impl;

import com.edu.service.BookService;
import org.springframework.stereotype.Service;


@Service
public class BookServiceImpl implements BookService{
//    @Override
    public void selectBook() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {

        }
        System.out.println("执行了 book的查询方法");
    }

//    @Override
    public void addBook() {
        System.out.println("执行了 book的添加方法");
    }

//    @Override
    public void deleteBook() {
        System.out.println("执行了 book的删除方法");
    }

//    @Override
    public int updateBook() {
        System.out.println("执行了 book的修改方法");
        return 1;
    }

//    @Override
    public void selectAll() {
        System.out.println("执行了查询所有书本");
    }
}
